# Generated by Django 2.0.2 on 2018-02-27 14:21

import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc


class Migration(migrations.Migration):

    dependencies = [
        ('registro', '0004_auto_20180219_1654'),
    ]

    operations = [
        migrations.CreateModel(
            name='GrupoTickets',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('inicio_nro_factura', models.IntegerField(default=1)),
                ('nro_tickets', models.IntegerField(default=100)),
                ('cod_control_inicio', models.CharField(default='-', max_length=255)),
                ('template_svg', models.CharField(default='-', max_length=500)),
                ('desc_producto', models.CharField(default='-', max_length=500)),
                ('fecha_creacion', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.RenameField(
            model_name='tienda',
            old_name='fecha_de_entrega',
            new_name='fecha_registro',
        ),
        migrations.RemoveField(
            model_name='ticket',
            name='costo',
        ),
        migrations.RemoveField(
            model_name='ticket',
            name='fecha_emision',
        ),
        migrations.RemoveField(
            model_name='ticket',
            name='svg_generado',
        ),
        migrations.RemoveField(
            model_name='ticket',
            name='template_svg',
        ),
        migrations.RemoveField(
            model_name='ticket',
            name='tienda',
        ),
        migrations.RemoveField(
            model_name='tienda',
            name='nro_facturacion',
        ),
        migrations.AddField(
            model_name='ticket',
            name='cod_control',
            field=models.CharField(default='-', max_length=255),
        ),
        migrations.AddField(
            model_name='ticket',
            name='fecha_verificacion',
            field=models.DateTimeField(blank=True, default=datetime.datetime(2018, 2, 27, 14, 21, 34, 673026, tzinfo=utc)),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='ticket',
            name='verificado',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='tienda',
            name='factura_nro_inicio',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='tienda',
            name='fectura_nro_final',
            field=models.IntegerField(default=1000),
        ),
        migrations.AlterField(
            model_name='ticket',
            name='codigo_de_barras',
            field=models.CharField(default='0000000000000', editable=False, max_length=13),
        ),
        migrations.AlterField(
            model_name='ticket',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='ticket',
            name='nro_factura',
            field=models.IntegerField(),
        ),
        migrations.AlterField(
            model_name='tienda',
            name='nit',
            field=models.CharField(default='-', max_length=255),
        ),
        migrations.AlterField(
            model_name='tienda',
            name='nombre',
            field=models.CharField(default='-', max_length=550),
        ),
        migrations.AddField(
            model_name='grupotickets',
            name='tienda',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='registro.Tienda'),
        ),
        migrations.AddField(
            model_name='ticket',
            name='grupo_tickets',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='registro.GrupoTickets'),
        ),
    ]
